function feature_matrix = PrepareFeatures(start_ind, num_points, frame_offset,sample_step, lecturer, saliency, board_center_x) 

%load predicted_panning_label.mat

start_step = sample_step;

num_features = 0;
for ind = start_step:sample_step:frame_offset 
    num_features = num_features + 1;
end
num_features = 2;% + num_features*2; %+ 2;
feature_ind = 1;

feature_matrix = zeros(num_features, num_points);
%feature_matrix(feature_ind,:) = predicted_panning_label(start_ind:(start_ind-1)+num_points,1)';
%feature_ind = feature_ind +1;
feature_matrix(feature_ind,:) = lecturer(start_ind:(start_ind-1)+num_points,2)';
feature_ind = feature_ind +1;
feature_matrix(feature_ind,:) = saliency(start_ind:(start_ind-1)+num_points,2)';
feature_ind = feature_ind +1;

% for i=1:size(board_center_x,1)
% feature_matrix(feature_ind,:) =board_center_x(i,:)*( ones(size(num_points,1)));
% feature_ind = feature_ind +1;
% end


%past information lecturer tracking
% for ind = start_step:sample_step:sample_step%frame_offset 
%  %feature_matrix(feature_ind,1:ind-1) = feature_matrix(1,1:ind-1);
%  feature_matrix(feature_ind,ind:num_points) = feature_matrix(1,1:num_points-ind+1);
% feature_ind = feature_ind +1;
% end

% %future information lecturer tracking
% for ind = start_step:sample_step:frame_offset 
% %feature_matrix(feature_ind,num_points-ind+2:num_points) = feature_matrix(1,num_points-ind+2:num_points);
% feature_matrix(feature_ind,1:num_points-ind+1) = feature_matrix(1,ind:num_points);
% feature_ind = feature_ind +1;
% end

% %past information saliency
% for ind = start_step:sample_step:sample_step%frame_offset
%  %feature_matrix(feature_ind,1:ind-1) = feature_matrix(2,1:ind-1);
%  feature_matrix(feature_ind,ind:num_points) = feature_matrix(2,1:num_points-ind+1);
% feature_ind = feature_ind +1;
% end

% %future information saliency
% for ind = start_step:sample_step:frame_offset 
%   %  feature_matrix(feature_ind,num_points-ind+2:num_points) = feature_matrix(2,num_points-ind+2:num_points);
% feature_matrix(feature_ind,1:num_points-ind+1) = feature_matrix(2,ind:num_points);
% feature_ind = feature_ind +1;
% end